package com.googlecode.mbhsrobopro.controller.events;
import java.util.EventObject;

import com.googlecode.mbhsrobopro.controller.components.ArcadeDrive;

/**
 * Stores information about the rover condition based on the mouse location in the
 * {@code ArcadeDrive}.
 * 
 * @see ArcadeDrive
 * 
 * @author Brian Clanton
 *
 */
public class ValueChangedEvent extends EventObject {

	private int motorSpeed;
	private double turningScale;
	private boolean forward, backward, left, right;
	
	public ValueChangedEvent(ArcadeDrive ad, int motorSpeed, double turningScale, boolean forward, boolean backward, boolean left, boolean right) {
		super(ad);
		this.motorSpeed = motorSpeed;
		this.turningScale = turningScale;
		this.forward = forward;
		this.backward = backward;
		this.left = left;
		this.right = right;
	}

	public int getMotorSpeed() {
		return motorSpeed;
	}

	public double getTurningScale() {
		return turningScale;
	}

	public boolean isForward() {
		return forward;
	}

	public boolean isBackward() {
		return backward;
	}

	public boolean isLeft() {
		return left;
	}

	public boolean isRight() {
		return right;
	}

}
